import LayerManager from "@/plugins/mev/layer/LayerManager";

class TreeCesiumData {
    constructor(data, viewer) {
        this._data = data;
        this._viewer = viewer;
        if (data.properties) {
            this.properties = data.properties;
        }
    }

    setVisible(b, layerManager) {
        if (b === this._data.visible) return;

        this._data.visible = b;
        layerManager.updateInternalIndex();
        if (b) {
            this.show();
        } else {
            this.close();
        }
    }

    setProperties(props) {}

    show() {}
    close() {}

    flyTo(obj) {
        /*this._viewer.zoomTo(obj);*/
        this._viewer.flyTo(obj);
    }
    updateInternalIndex(internalIndex){}
}
export default TreeCesiumData;
